.traditional-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(to right, transparent, #D4B16A, transparent);
    text-align: center;
    margin: 40px 0;
}

.traditional-divider span {
    position: relative;
    top: -12px;
    background: #F8F4E9;
    padding: 0 20px;
    color: #9A1F1A;
    font-size: 1.2rem;
    font-style: italic;
}

.card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #9A1F1A;
    color: #F8F4E9;
    padding: 3px 10px;
    z-index: 2;
    font-size: 0.8rem;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}

.footer-title {
    color: #D4B16A;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #9A1F1A;
}

/* 次级导航容器 */
.secondary-nav-container {
    background: linear-gradient(to right, #F0E8D5, #E8DBC5);
    padding: 15px 0;
    border-bottom: 1px solid #D4B16A;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* 传统药丸式导航 */
.traditional-pills {
    display: flex;
    gap: 5px;
}

.traditional-pills .nav-item {
    position: relative;
}

.traditional-pills .nav-link {
    color: #2A3547;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.traditional-pills .nav-link i {
    font-size: 1.1rem;
}

.traditional-pills .nav-link:hover {
    color: #9A1F1A;
    border-color: #D4B16A;
    background: rgba(212, 177, 106, 0.1);
}

.traditional-pills .nav-link.active {
    background: #9A1F1A;
    color: #F8F4E9;
    box-shadow: 0 4px 8px rgba(154, 31, 26, 0.2);
}

.traditional-pills .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #F8F4E9;
    z-index: 10;
}
/* 搜索框容器 */
.search-box {
    display:flex;
    border: 2px solid #D4B16A;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: #F8F4E9;
    width: 400px;
}

.search-box:focus-within {
    border-color: #9A1F1A;
    box-shadow: 0 4px 12px rgba(154, 31, 26, 0.2);
}

/* 搜索输入框 */
.search-input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: transparent;
    color: #2A3547;
    font-family: 'Noto Serif SC', serif;
}

.search-input::placeholder {
    color: #7B9EA8;
    font-style: italic;
}

/* 搜索按钮 */
.search-btn {
    padding: 0 20px;
    background: linear-gradient(to right, #9A1F1A, #7A0F0A);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.search-btn:hover {
    background: linear-gradient(to right, #7A0F0A, #5A0000);
}

/* 相机按钮 */
.camera-btn {
    padding: 0 15px;
    background: #F0E8D5;
    border: none;
    border-left: 1px solid #D4B16A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.camera-btn:hover {
    background: #E8DBC5;
}

.camera-icon {
    width: 24px;
    height: 24px;
    fill: #9A1F1A;
    transition: all 0.3s ease;
}

.camera-btn:hover .camera-icon {
    fill: #7A0F0A;
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 500px) {
    .search-box {
        margin-top: 10px;
        border-radius: 25px;
    }

    .search-input {
        padding: 8px 15px;
    }

    .search-btn {
        padding: 8px 15px;
        min-width: 70px;
    }

    .camera-btn {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .search-input::placeholder {
        font-size: 0.9rem;
    }

    .search-box {
        border-radius: 20px;
    }
}
/*识别物体框*/
/* 整体模态框的古色古香样式 */
.ancient-style {
    background-color: #f4f0e8; /* 淡雅的背景色，类似古风纸张颜色 */
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 20px;
    font-family: "楷体", serif; /* 使用楷体，增添古风 */
    color: #333;
}

/* 模态框内容区域的样式 */
.ancient-modal-content {
    position: relative;
}

/* 关闭按钮的样式 */
.ancient-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

/* 标题样式 */
.ancient-heading {
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    color: #555;
}

/* 描述文本样式 */
.ancient-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

/* 相机容器样式 */
.ancient-camera-container {
    text-align: center;
    margin-bottom: 20px;
}

/* 视频样式 */
.ancient-video {
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* 画布样式 */
.ancient-canvas {
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* 识别结果区域样式 */
.ancient-recognition-result {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    background-color: #f9f9f9;
}

/* 识别结果标题样式 */
.ancient-result-heading {
    font-size: 20px;
    margin-bottom: 10px;
    color: #555;
}

/* 搜索中描述文本样式 */
.ancient-searching-desc {
    font-size: 16px;
    line-height: 1.6;
}

/* 相机操作区域样式 */
.ancient-camera-actions {
    text-align: center;
}

/* 操作按钮样式 */
.ancient-action-btn {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.ancient-action-btn:hover {
    background-color: #0056b3;
}

/* 取消按钮样式 */
.ancient-cancel-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    color: #333;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ancient-cancel-btn:hover {
    background-color: #f4f4f4;
    border-color: #aaa;
}
/* 传统风格分页栏 */
.traditional-pagination .page-item {
    margin: 0 5px;
}

.traditional-pagination .page-link {
    color: #2A3547;
    background-color: #F8F4E9;
    border: 1px solid #D4B16A;
    border-radius: 4px;
    padding: 8px 15px;
    font-family: 'Noto Serif SC', serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.traditional-pagination .page-link:hover {
    background-color: rgba(212, 177, 106, 0.2);
    color: #9A1F1A;
}

.traditional-pagination .page-item.active .page-link {
    background-color: #9A1F1A;
    color: #F8F4E9;
    border-color: #9A1F1A;
    box-shadow: 0 2px 8px rgba(154, 31, 26, 0.3);
}

.traditional-pagination .page-item.disabled .page-link {
    color: #7B9EA8;
    background-color: #F0E8D5;
    border-color: #E8DBC5;
}

/* 分页图标样式 */
.traditional-pagination .bi {
    font-size: 1rem;
    vertical-align: middle;
}

/* 分页数字样式 */
.traditional-pagination .page-link {
    min-width: 40px;
    text-align: center;
}
#v-pills-clothing .container {
    padding-bottom: 0;
    margin-bottom: 0;
}

#v-pills-clothing .row {
    margin-bottom: 0;
}

.traditional-pagination {
    margin-top: 1rem;
    margin-bottom: 0;
}

/* 移除可能继承的底部间距 */
.tab-content {
    padding-bottom: 0;
}


.antique-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    font-family: "楷体", "STKaiti", serif;
    gap: 5px;
}

.antique-btn {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #d1b38e;
    background-color: #f9f2e8;
    color: #8b4513;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.antique-btn:hover {
    background-color: #e8d9c5;
    color: #5d2d0c;
}

.antique-btn.active {
    background-color: #d1b38e;
    color: #fff;
    font-weight: bold;
}

.antique-divider {
    padding: 5px 8px;
    color: #8b4513;
}

.antique-page-info {
    margin-left: 15px;
    color: #8b4513;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .antique-pagination {
        flex-wrap: wrap;
    }

    .antique-page-info {
        width: 100%;
        text-align: center;
        margin: 10px 0 0 0;
    }
}